package org.jerrymouse.jsa4j.db.kv.gae;

import java.util.Map;

import org.jerrymouse.jsa4j.db.kv.DB;
import org.jerrymouse.jsa4j.db.kv.DBManager;

import com.google.appengine.api.datastore.DatastoreServiceConfig;
import com.google.appengine.api.datastore.DatastoreServiceFactory;

public class GaeDBManager implements DBManager {
	private DatastoreServiceConfig config;

	@Override
	public DB getDB() {
		if (config != null)
			return new GaeDB(DatastoreServiceFactory
					.getDatastoreService(config));
		return new GaeDB(DatastoreServiceFactory.getDatastoreService());
	}

	@Override
	public void setProperties(Map<String, String> properties) {

	}

}
